final class Pandora {

  private final static Pandora instance = new Pandora();
  public static Pandora getInstance() {
    return instance;
  }

  private Pandora() {}

  private final ApplicationController app =
    new ApplicationController(this,"PandoraBoy");

  public String getCurrentArtist() {
    return exec("artist of current track");
  }

  public String getCurrentTrack() {
    return exec("name of current track");
  }

  public String getCurrentAlbum() {
    return exec("album of current track");
  }

  public String thumbsDown() {
    return exec("thumbs down");
  }

  public String thumbsUp() {
    return exec("thumbs up");
  }

  public String pausePlay() {
    return exec("pauseplay");
  }

  public String nextTrack() {
    return exec("next track");
  }



  public ApplicationController getApp() {
    return app;
  }

  private String exec(String cmd) {
    return app.execute(cmd);
  }
}